package moodish.dummy.main;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

import javax.swing.plaf.SliderUI;

import moodish.comm.ClientSideMessage;
import moodish.comm.ClientSideMessage.Type;
import moodish.comm.ServerSideMessage;
import moodish.dummy.MoodishServerDummy;
import moodish.dummy.ServerCommDummy;
import moodish.server.MoodishServer;

public class ServerMainDummy {
	public static void main(String[] args) throws Exception {
		ServerCommDummy serverComm = new ServerCommDummy();
		MoodishServer server = new MoodishServerDummy();
		server.start(serverComm);

		//Thread.sleep(8000);
		// serverComm.sendError("teste", "Um erro!!");

		while(true){
			System.out.println(serverComm.getNextMessage().getType());
			serverComm.sendError("teste", "olas");
		}

	}
}
